#include "Object.h"

//Creates a generic object
Object::Object() {
	name = "";
	Color color(1, 0, 0);
	Material material;
	boundingVolume = false;
}

float Object::tIntersect(Vector3 p, Vector3 r, Object* obj) {
	return -1.0f;
}

bool Object::isBoundingVolume() {
	return boundingVolume;
}

Object* Object::tIntersect(const Ray& ray, float& distance) {
	distance = -1;
	return this;
}

Vector3 Object::normal(Vector3 p) {
	return n;
}

Vector3 Object::normal() {
	return n;
}

Color Object::getExtraColor(Vector3 p) {
	return Color(0, 0, 0);
}